home *** CD-ROM | disk | FTP | other *** search
/ NetNews Offline 2 / NetNews Offline Volume 2.iso / news / comp / lang / c++-part2 / 14162 < prev    next >
Encoding:
Internet Message Format  |  1996-08-05  |  1.9 KB

  1. Path: news.iastate.edu!kickapoo!kelvin
  2. From: kelvin@kickapoo.catd.iastate.edu (Kelvin Nilsen)
  3. Newsgroups: comp.lang.smalltalk,comp.object,comp.lang.c++,comp.lang.java
  4. Subject: Re: The Good, the Bad, the Ugly, and the Wicked ...
  5. Date: 28 Mar 96 18:50:46 GMT
  6. Organization: Iowa State University, Ames, Iowa
  7. Distribution: world
  8. Message-ID: <kelvin.828039046@kickapoo>
  9. References: <31570B8E.5A12@vmark.com> <4je5rq$7qg@mimas.brunel.ac.uk>
  10. NNTP-Posting-Host: kickapoo.catd.iastate.edu
  11.  
  12. Francesco Fantauzzi <mapgfgf@brunel.ac.uk> writes:
  13.  
  14. >A language offering automatic garbage collection disqualifies itself for 
  15. >at least two streams of applications:
  16.  
  17. >1) those requiring a garbage collection, but one different from the one 
  18. >"built" into the language
  19.  
  20. >2) those requiring that you DON'T do any automatic garbage collection.
  21.  
  22. >I belive that, for instance, real-time applications fit the second 
  23. >stream.
  24.  
  25. >A language that is proposed as "general purpose" shouldn't offer 
  26. >"compulsory" garbage collection (g.c.). A general purpose language should 
  27. >give you a chance to implement the g.c. you like the most. Between the 
  28. >languages you have mentioned in your article, I know througly just C++. 
  29. >Up to what I know, C++ allows you to implement your favorite g.c. through 
  30. >(say) overloading, inheritance, and the preprocessor.
  31.  
  32. You should be aware that numerous real-time garbage collection techniques 
  33. are avavailable.  And work is under way to implement real-time java.  See
  34. the web page referenced from my signature.
  35.  
  36. >>Memory Leaks            1       3       1       1
  37. >^----------------- C++ has got exception handling. It seems to me a good 
  38. >way to handle memory leaks.
  39.  
  40.   or to introduce them ...
  41.  
  42. -- 
  43. Kelvin Nilsen, Research Scientist                      voice: (515) 294-5143
  44. 151 ASC II, CATD                                  fax: (515) 294-9519
  45. Iowa State University                internet: kelvin@iastate.edu
  46. Ames, IA  50011             http://kickapoo.catd.iastate.edu/index.html
  47.